/*
 *   Copyright (C) 2007 by Andrzej Oczkowicz
 *   andrew_lz@poczta.fm
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 *   KMediaCatalog :)
 *
 */

#ifndef _OUT_H_
#define _OUT_H_

#include "../../kmodule.h"

class output : public kOutputBasic
{
  Q_OBJECT
  public:
    QString catalog;
    QString base;

    output(int version = 0, const QString &name = QString::null, const QString &description = QString::null);
    ~output();
    kNode * createNode(QFileInfo*fi);
    kNode * createNode(kNode*parent, const kBasicFileInfo * info);
    int addNodeData(kNode * node, const kBasicFileInfo * info);
    void freeNode(kNode*node);
    void freeNodes(kNodes*nodes);
    kNodes * subNodes(kNode*node);
    int sync();
    int setCatalogFileName(const QString&fileName);
    kNode * rootNode();
};


#endif // _OUT_H_

